<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>demo2-1</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app"></div>
    <script>
        const appCom = {
            template:'<h1>{{msg }}</h1>',
            data(){
                return{
                    msg:'hello world'
                }
            }
        }
        Vue.createApp(comApp).mount("#app");
    </script>
</body>
</html>